package sj.service.Impl;


import org.springframework.stereotype.Service;
import sj.mappers.WalletDetailsMapper;
import sj.pojo.WalletDetails;
import sj.service.WalletDetailsService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class WalletDetailsServiceImpl implements WalletDetailsService {

    @Resource
    private WalletDetailsMapper walletDetailsMapper;

    // 加入的钱包详情
    public boolean insertWalletDetails(WalletDetails walletDetails) {
        return walletDetailsMapper.insertWalletDetails(walletDetails) > 0 ? true : false;
    }

    public List<WalletDetails> getWalletDetailsByWalletId(Integer walletId) {
        return walletDetailsMapper.getWalletDetailsByWalletId(walletId);
    }
}
